package day0917Banking;
import day0917Banking.Bank;

import day0917Banking.Customer;

public class TestBanking {

    public static void main(String[] args) {
        //项目01测试
//        Account account = new Account(500);
//        account.getBalance("Jane ", "Smith");
//        account.withdraw(150.00);
//        account.deposit(22.50);
//        account.withdraw(47.62);
//        account.getBalance("Jane ", "Smith");

        //项目02测试
//        Account account = new Account(500);
//        account.getBalance("Jane ", "Smith");
//        account.withdraw(150.00);
//        account.deposit(22.50);
//        account.withdraw(47.62);
//        account.getBalance("Jane ", "Smith");

        //项目03测试
//        new Customer("Jane ", "Smith");
//        Account account1 = new Account(500.0D);
//        account1.getBalance("Jane ", "Smith");
//        account1.withdraw(150.0D);
//        account1.deposit(22.5D);
//        account1.withdraw(47.62D);
//        account1.withdraw(400.62D);
//        account1.getBalance("Jane ", "Smith");

        //项目04测试
        Bank bank=new Bank();
        //Add Customer Jane,Simms
        bank.addCustomer("Jane","Simms");
        //code
        //Add Customer Owen,Bryant
        bank.addCustomer("Owen","Bryant");
        //code
        //Add Customer Tim,Soley
        bank.addCustomer("Tim","Soley");
        //code
        //Add Customer Maria,Soley
        bank.addCustomer("Maria","Soley");
        //code
        for(int i=0;i<bank.getNumOfCustomers();i++) {
            Customer customer=bank.getCustomer(i);
            System.out.println("Customer ["+(i+1)+"] is "+customer.getLastName()+","+customer.getFirstName());
        }

    }
}